﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="login.ascx.cs" Inherits="maxitextil.Control.login" %>
<link href="../../App_Themes/maxitextil/css/login.css" rel="stylesheet" type="text/css" />
    <script src="App_Themes/maxitextil/js/jquery.js" type="text/javascript"></script>
    <script src="App_Themes/maxitextil/js/jquery.ui.draggable.js" type="text/javascript"></script>
<link href="App_Themes/maxitextil/css/jquery.alerts.css" rel="stylesheet" type="text/css" />
<script src="App_Themes/maxitextil/js/jquery.alerts.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {

        $("#FailureText").click(function () {
            jAlert('Usuário ou senha incorreto. Tente Novamente!', 'Alerta');
        });

    });
		</script>



<asp:Login ID="Login1" runat="server">
    <LayoutTemplate>
        <div>
            <table cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                <tr>
                    <td>
                        <table cellpadding="1">
                            <tr>
                                <td id="label">
                                    Usuário
                                </td>
                                <td width="10">
                                </td>
                                <td id="label">
                                    Senha<td>
                                    </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="UserName" runat="server" Width="160px" CssClass="placeholder"></asp:TextBox>
                                </td>
                                <td>
                                </td>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="160px" CssClass="placeholder"></asp:TextBox>
                                </td>
                                <td>
                                </td>
                                <td>
                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Entrar" 
                                        ValidationGroup="ctl00$Login1" CssClass="login" 
                                        onclick="LoginButton_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td id="lbLembrar" colspan="1">
                                    <asp:CheckBox ID="RememberMe" runat="server" Text="&nbsp;Mantenha-me conectado" />
                                </td>
                                <td>
                                </td>
                                <td id="lbEsqueceu">
                                    <asp:HyperLink ID="lk_forgotPass" runat="server" NavigateUrl="../login.aspx">Ajuda</asp:HyperLink>
                                    &nbsp;|&nbsp;
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="../register.aspx">Cadastre-se</asp:HyperLink>
                                </td>
                                <td>
                                <asp:Literal  ID="FailureText" runat="server" EnableViewState="true"/></asp:Literal>

                                <input id="FailureText" type="button" value="Show Alert" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </LayoutTemplate>
</asp:Login>
